<template>
  <view class="followed-list">
    <u-list>
      <u-list-item v-for="contact in list" :key="contact.id"> 
        <u-card :title="contact.name"> 
          <view slot="body">
            <text>{{contact.age}} 岁 | {{contact.height}}cm</text> 
            <text>{{contact.education}}  | {{contact.workCity}}</text> 
          </view>
          <view slot="foot">
            <u-button size="mini" @click="$emit('unfollow', contact.id)"> 取消关注</u-button>
            <u-button size="mini" type="primary" @click="$emit('send-message', contact)">发送留言</u-button>
          </view>
        </u-card>
      </u-list-item>
    </u-list>
  </view>
</template>